
import python
from django.conf.urls.defaults import *
from django.views.static import serve
from django.conf.urls.defaults import *
from django.contrib.auth import views as auth_views
# Uncomment the next two lines to enable the admin:
from django.conf import settings
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^python/', include('python.foo.urls')),
    (r'^$','python.magazynDanych.views.index'),
    (r'^onas/','python.magazynDanych.views.o_nas'),
    (r'^kontakt/','python.magazynDanych.views.kontakt'),
    (r'^accounts/', include('registration.urls')),    
    (r'^admin/', include(admin.site.urls)),
    (r'^magazyn/',include('magazynDanych.urls')),
)

if settings.DEBUG:
 _media_url = settings.MEDIA_URL
if _media_url.startswith('/'):
 _media_url = _media_url[1:]

urlpatterns += patterns('',(r'^%s(?P<path>.*)$' % _media_url,serve,{'document_root': settings.MEDIA_ROOT}))
del(_media_url, serve)